package com.gs.dao.jdbc.impl.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.gs.bean.New;

public class NewRowMapper implements RowMapper {

	@Override
	public Object mapRow(ResultSet rs, int rownum) throws SQLException {
		New obj = new New();
		obj.setId(rs.getInt("id"));
		obj.setTitle(rs.getString("title"));
		obj.setContext(rs.getString("context"));
		obj.setCreationTime(rs.getDate("creationTime"));
		return obj;
	}


}
